﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AteneoLibriBusinessLogic.Entities;

namespace AteneoLibriBusinessLogic.TOA
{
    public class FacultyAssembler
    {

        public static Faculty Assembler(AteneoLibriEntityFramework.Faculty item)
        {
            Faculty f = new Faculty();

            f.IdFaculty = item.IdFaculty;
            f.Name = item.Name;
            f.UniversityId = item.UniversityId;

            return f;
        }

        public static AteneoLibriEntityFramework.Faculty DeAssembler(Faculty item)
        {
            AteneoLibriEntityFramework.Faculty f = new AteneoLibriEntityFramework.Faculty();

            f.IdFaculty = item.IdFaculty;
            f.Name = item.Name;
            f.UniversityId = item.UniversityId;

            return f;
        }

        public static void WriteToEntity(AteneoLibriEntityFramework.Faculty entity, Faculty item)
        {
            entity.IdFaculty = item.IdFaculty;
            entity.Name = item.Name;
            entity.UniversityId = item.UniversityId;
        }

    }
}
